(function (w) {
//  var apiHost = 'http://www.uhuijia.com.cn:8083/mall/mobile/mallback/';
    var apiHost = 'http://47.92.67.233:8080/mall/backStage/goods/';
//	var apiHost = 'http://192.168.1.194/cms/goods/';
    var apiHosts = 'http://develop.jhjvip.cn:8080/mall/mobile/';
    w.URL={};
    w.URLS={};
    //域名
    URL.host=apiHost;
    URLS.host=apiHosts;
//  URLS.host=apiHost;
	URL.debug=true;
	URL.isWeihu=false;
    //强制刷新当前页面
    URL.version=Math.random();

    //接口
    URL.interface={
    	//商品一级目录
    	getCategoryList:'goodsCategory/getCategoryList',
    	//添加规格
    	addspec:'property/add',
    	//添加品牌
    	addbrand:'brand/add',
    	//品牌列表
    	getBrandList:'brand/getBrandList',
    	//品牌删除
    	delBrand:'brand/delBrand',
    	//编辑品牌
    	editBrand:'brand/editBrand',
    	//规格选择
    	getCategoryProperty:'property/getCategoryProperty',
    	//删除规格
    	delValue:'property/delValue',
    	//新建商品
    	addgoods:'spuBackstage/add'
    	
    };
    //接口
    URLS.interface={
    	//获取验证码
    	code:'login/code',
    	//登录
    	login:'login/in',
    	//退出
    	out:'login/out',
    };
    //组合接口地址
    for (k in URL.interface){
        URL.interface[k]=URL.host + URL.interface[k];
    };
    //组合接口地址
    for (k in URLS.interface){
        URLS.interface[k]=URLS.host + URLS.interface[k];
    };
})(window);